package com.nickstumpos.android.easyVolume.streams.presentation;

import android.app.Activity;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.CheckBox;
import android.widget.ImageButton;
import android.widget.TextView;

import com.nickstumpos.android.easyVolume.R;
import com.nickstumpos.android.easyVolume.playRinger.streams.NotificationPlaySample;
import com.nickstumpos.android.easyVolume.streams.AbstractVolumeScreen;
import com.nickstumpos.android.easyVolume.streams.presentation.types.Screen;
import com.nickstumpos.android.easyVolume.streams.types.Stream;

public class NotificationStreamScreen extends AbstractVolumeScreen {

	public NotificationStreamScreen(Context context) {
		super(context);
		super.setStream(Stream.NOTIFICATION);
		super.setPlaySample(new NotificationPlaySample(context));
	}

	public NotificationStreamScreen(Context context, AttributeSet attrs) {
		super(context, attrs);
		super.setStream(Stream.NOTIFICATION);
		super.setPlaySample(new NotificationPlaySample(context));
	}

	public NotificationStreamScreen(Context context, AttributeSet attrs,
			int defStyle) {
		super(context, attrs, defStyle);
		super.setStream(Stream.NOTIFICATION);
		super.setPlaySample(new NotificationPlaySample(context));
	}

	@Override
	public void assignButtons(Activity main) {
		super.setCheckbox((CheckBox) main.findViewById(R.id.NotificationCheckBox));
		super.setHigh((ImageButton) main.findViewById(R.id.NotificationHigh));
		super.setMedHigh((ImageButton) main.findViewById(R.id.NotificationMedHigh));
		super.setMedium((ImageButton) main.findViewById(R.id.NotificationMedium));
		super.setMedLow((ImageButton) main.findViewById(R.id.NotificationMedLow));
		super.setLow((ImageButton) main.findViewById(R.id.NotificationLow));
		super.setSilent((ImageButton) main.findViewById(R.id.NotificationSilent));
		super.setVolumeStatus((TextView) main
				.findViewById(R.id.NotificationVolumeStatus));
		super.setPlayMedia((ImageButton) main.findViewById(R.id.NotificationPlay));
		super.setVibeButton((ImageButton) main
				.findViewById(R.id.NotificationVibrate));
		super.setVibrateOnly((ImageButton) main
				.findViewById(R.id.NotificationVibrateOnly));
		super.setTouchListeners();
	}

	@Override
	public String getName() {
		return Screen.NOTIFICATION.getName();
	}
}
